package service;

import dao.StuDao;
import dao.StuDaoImp;
import po.StuInfo;

public class StuServiceImp implements StuService{
    @Override
    public Boolean Login(String id, String password) {
       StuDao sdao = new StuDaoImp();
       StuInfo stuInfo = sdao.QueryStuInfoById(id);
       if(stuInfo.getPassword().equals(password)){
           return true;
       }
       return false;
    }
}
